package com.smart.translator.data.model;

import com.google.gson.annotations.SerializedName;

public class TranslationResponse {
    @SerializedName("translatedText")
    private String translatedText;

    @SerializedName("detectedLanguage")
    private DetectedLanguage detectedLanguage;

    public String getTranslatedText() {
        return translatedText;
    }

    public DetectedLanguage getDetectedLanguage() {
        return detectedLanguage;
    }

    public static class DetectedLanguage {
        @SerializedName("language")
        private String language;

        @SerializedName("confidence")
        private float confidence;

        public String getLanguage() {
            return language;
        }

        public float getConfidence() {
            return confidence;
        }
    }
} 